Optimal. Leaf size=97 \[ -\frac {2^{1+\frac {p}{2}} a (e \cos (c+d x))^{1+p} \, _2F_1\left (-\frac {p}{2},\frac {1+p}{2};\frac {3+p}{2};\frac {1}{2} (1-\sin (c+d x))\right ) (1+\sin (c+d x))^{-p/2}}{d e (1+p) \sqrt {a+a \sin (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 97, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.120, Rules used = {2768, 72, 71}
\begin {gather*} -\frac {a 2^{\frac {p}{2}+1} (\sin (c+d x)+1)^{-p/2} (e \cos (c+d x))^{p+1} \, _2F_1\left (-\frac {p}{2},\frac {p+1}{2};\frac {p+3}{2};\frac {1}{2} (1-\sin (c+d x))\right )}{d e (p+1) \sqrt {a \sin (c+d x)+a}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 71
Rule 72
Rule 2768
Rubi steps
\begin {align*} \int (e \cos (c+d x))^p \sqrt {a+a \sin (c+d x)} \, dx &=\frac {\left (a^2 (e \cos (c+d x))^{1+p} (a-a \sin (c+d x))^{\frac {1}{2} (-1-p)} (a+a \sin (c+d x))^{\frac {1}{2} (-1-p)}\right ) \text {Subst}\left (\int (a-a x)^{\frac {1}{2} (-1+p)} (a+a x)^{\frac {1}{2}+\frac {1}{2} (-1+p)} \, dx,x,\sin (c+d x)\right )}{d e}\\ &=\frac {\left (2^{p/2} a^2 (e \cos (c+d x))^{1+p} (a-a \sin (c+d x))^{\frac {1}{2} (-1-p)} (a+a \sin (c+d x))^{\frac {1}{2} (-1-p)+\frac {p}{2}} \left (\frac {a+a \sin (c+d x)}{a}\right )^{-p/2}\right ) \text {Subst}\left (\int \left (\frac {1}{2}+\frac {x}{2}\right )^{\frac {1}{2}+\frac {1}{2} (-1+p)} (a-a x)^{\frac {1}{2} (-1+p)} \, dx,x,\sin (c+d x)\right )}{d e}\\ &=-\frac {2^{1+\frac {p}{2}} a (e \cos (c+d x))^{1+p} \, _2F_1\left (-\frac {p}{2},\frac {1+p}{2};\frac {3+p}{2};\frac {1}{2} (1-\sin (c+d x))\right ) (1+\sin (c+d x))^{-p/2}}{d e (1+p) \sqrt {a+a \sin (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 3.94, size = 310, normalized size = 3.20 \begin {gather*} \frac {(1+i) 2^{-p} e^{-\frac {1}{2} i d x} \cos ^{-p}(c+d x) (e \cos (c+d x))^p \left (e^{i d x} (1+2 p) \, _2F_1\left (\frac {1}{4} (1-2 p),-p;\frac {1}{4} (5-2 p);-e^{2 i d x} (\cos (c)+i \sin (c))^2\right ) \left (\cos \left (\frac {c}{2}\right )+i \sin \left (\frac {c}{2}\right )\right )+(-1+2 p) \, _2F_1\left (\frac {1}{4} (-1-2 p),-p;\frac {1}{4} (3-2 p);-e^{2 i d x} (\cos (c)+i \sin (c))^2\right ) \left (i \cos \left (\frac {c}{2}\right )+\sin \left (\frac {c}{2}\right )\right )\right ) \left (e^{-i d x} \left (\left (1+e^{2 i d x}\right ) \cos (c)+i \left (-1+e^{2 i d x}\right ) \sin (c)\right )\right )^p \left (1+e^{2 i d x} \cos (2 c)+i e^{2 i d x} \sin (2 c)\right )^{-p} \sqrt {a (1+\sin (c+d x))}}{d (-1+2 p) (1+2 p) \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.15, size = 0, normalized size = 0.00 \[\int \left (e \cos \left (d x +c \right )\right )^{p} \sqrt {a +a \sin \left (d x +c \right )}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {a \left (\sin {\left (c + d x \right )} + 1\right )} \left (e \cos {\left (c + d x \right )}\right )^{p}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (e\,\cos \left (c+d\,x\right )\right )}^p\,\sqrt {a+a\,\sin \left (c+d\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________